package service.ClientService._stub;

import service.ClientService.AssessHotelService;
import util.CommentMessage;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class AssessHotelService_stub extends UnicastRemoteObject implements AssessHotelService{

	private static final long serialVersionUID = 3803341861680666964L;

	public AssessHotelService_stub() throws RemoteException {
		super();
	}
	public CommentMessage submitComment(String name, String HotelName, String comment, int star) throws RemoteException{
	        if(comment.length()<15){
	            return CommentMessage.LESS_WORD;
	        }else{
	            return CommentMessage.SUCCESS;
	        }
	    }
	
}
